package com.hu.zhcc.shiro.service.xsx;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hu.zhcc.shiro.dao.xsx.TCheckitemMapper;
import com.hu.zhcc.shiro.entity.xsx.XsxTCheckitem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 检查项表 服务实现类
 * </p>
 *
 * @author xsx
 * @since 2021-06-17
 */
@Service
public class TCheckitemServiceImpl extends ServiceImpl<TCheckitemMapper, XsxTCheckitem> implements TCheckitemService {
    @Autowired
    TCheckitemMapper tCheckitemMapper;

    @Override
    public List<XsxTCheckitem> queryAllCheckitem() {
        return tCheckitemMapper.queryAllCheckitem();
    }

    @Override
    public List<XsxTCheckitem> queryCheckitemStatus() {
        return tCheckitemMapper.queryCheckitemStatus();
    }

    @Override
    public int qyCheckitem(int id) {
        return tCheckitemMapper.qyCheckitem(id);
    }

    @Override
    public int jyCheckitem(int id) {
        return tCheckitemMapper.jyCheckitem(id);
    }

    @Override
    public int addCheckitemOne(XsxTCheckitem tCheckitem) {
        return tCheckitemMapper.addCheckitemOne(tCheckitem);
    }

    @Override
    public int updateCheckitemOne(XsxTCheckitem tCheckitem) {
        return tCheckitemMapper.updateCheckitemOne(tCheckitem);
    }

    @Override
    public List<XsxTCheckitem> getTjxxByHyid(int id) {
        return tCheckitemMapper.getTjxxByHyid(id);
    }
}
